package com.yi.mall.api;

import com.yi.mall.common.model.DTO.StockDTO;
import com.yi.mall.common.model.SkuInfo;
import com.yi.mall.common.utils.ResponseEnum;
import com.yi.mall.common.utils.Result;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public class SkuInfoFeignFallback implements SkuInfoFeign{

    @Override
    public Result getById(Long id) {
        return Result.fail(ResponseEnum.FAIL);
    }

    @Override
    public Result listByCondition(String categoryName, String brandName) {
        return Result.fail(ResponseEnum.FAIL);
    }

    @Override
    public Result update(SkuInfo skuInfo) {
        return Result.fail(ResponseEnum.FAIL);
    }

    @Override
    public Result dcount(List<StockDTO> stock) {
        return Result.fail(ResponseEnum.FAIL);
    }

    @Override
    public Result listAll() {
        return Result.fail(ResponseEnum.FAIL);
    }
}
